cmake_minimum_required(VERSION 3.10.2)
project(ipa_building_msgs)

find_package(catkin REQUIRED COMPONENTS
        actionlib
        actionlib_msgs
        genmsg
        geometry_msgs
        message_generation
        sensor_msgs
        std_msgs
        )

add_action_files(
        DIRECTORY action
        FILES
        MapSegmentation.action
        FindRoomSequenceWithCheckpoints.action
        RoomExploration.action
)

## Generate messages in the 'msg' folder
add_message_files(
        DIRECTORY
        msg
        FILES
        RoomInformation.msg
        RoomSequence.msg
)

## Generate services in the 'srv' folder
add_service_files(
        DIRECTORY
        srv
        FILES
        CheckCoverage.srv
        ExtractAreaMapFromLabeledMap.srv
)

## Generate added messages and services with any dependencies listed here
generate_messages(
        DEPENDENCIES
        actionlib_msgs
        geometry_msgs
        sensor_msgs
        std_msgs
)

catkin_package(
        CATKIN_DEPENDS
        actionlib_msgs
        geometry_msgs
        message_runtime
        sensor_msgs
        std_msgs
)

include_directories(
        ${catkin_INCLUDE_DIRS}
)
